package study.factoryBeanTest;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @author: chengchao
 * @description:
 * @date: create in 2021/9/15
 **/
@Component
public class FactoryBeanInfo implements FactoryBean<UserFactoryInfo> {

    public UserFactoryInfo getObject() throws Exception {
        return new UserFactoryInfo();
    }

    public Class<?> getObjectType() {
        return UserFactoryInfo.class;
    }

    public void info() {
        System.out.println("my name id factoryBean");
    }
}
